#include <stdio.h>
struct Employee /*declare a global structture type*/
{
    int idNum;
    double payRate;
    double hours;
};

struct Employee getValues(); /*function prototype*/

int main()
{
    struct Employee emp;

    emp = getValues();
    printf("\nThe employee id number is %d\n", emp.idNum);
    printf("The employee pay rate is $%5.2f\n", emp.payRate);
    printf("The employee hours are %5.2f\n", emp.hours);

    return 0;
}

struct Employee getValues()
{
    struct Employee newemp;

    newemp.idNum = 6789;
    newemp.payRate = 16.25;
    newemp.hours = 38.0;

    return (newemp);
}